package com.example.api.dao;

import com.example.api.model.entity.Company;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CompanyDao {

    int deleteByPrimaryKey(Integer id);

    int insert(Company record);

    int insertSelective(Company record);

    Company selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Company record);

    int updateByPrimaryKey(Company record);

    Company selectByCompany(@Param("name") String name);

    List<Company> findAll(String name);

}